{% extends 'layout.html' %}

{% load static %}

{% block content %}
<div class="container">
       <div class="container">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">下发命令</h3>
            </div>
            <div class="panel-body">
                <form method="post" action="">
                    {% csrf_token %}
                    {% for fields in form%}
                        <div class="form-group">
                            <label for="">{{fields.label}}</label>
                             {{fields}}
                             <span style="color:red">{{fields.errors.0}}</span>
                        </div>

                    {% endfor %}
                    <div class="form-group">
                        <label>命令</label>
                        <input type="text" class="form-control" placeholder="命令格式:MAC地址+命令" name="cmd">
                    </div>
                    <button type="submit" class="btn btn-primary btn-xs">提交</button>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}